package com.yimi.yinhepda.entity.response;

import java.math.BigDecimal;

/**
 * @author 000432
 * @date 2017/4/11 0011
 *
 * 解包下载接口的返回
 */

public class ReleasePckDownloadResponse {

  private boolean success;
  private String[] errorMessages;
  private int errorCode;
  public ReleaseDonloadEntity data;

  public static class ReleaseDonloadEntity {
    /** 包号 */
    private String packageNo;
    /** 下一部门 */
    private String destDeptCode;
    /** 下一部门名称 */
    private String destDeptName;
    /** 总重量 */
    private BigDecimal weight;
    /** 总件数 */
    private Integer piecesNum;
    /** 总票数 */
    private Integer priceNum;

    public String getPackageNo() {
      return packageNo;
    }

    public void setPackageNo(String packageNo) {
      this.packageNo = packageNo;
    }

    public String getDestDeptCode() {
      return destDeptCode;
    }

    public void setDestDeptCode(String destDeptCode) {
      this.destDeptCode = destDeptCode;
    }

    public String getDestDeptName() {
      return destDeptName;
    }

    public void setDestDeptName(String destDeptName) {
      this.destDeptName = destDeptName;
    }

    public BigDecimal getWeight() {
      if (weight == null) {
        weight = BigDecimal.ZERO;
      }
      return weight;
    }

    public void setWeight(BigDecimal weight) {
      this.weight = weight;
    }

    public Integer getPiecesNum() {
      if (priceNum == null) {
        piecesNum = 0;
      }
      return piecesNum;
    }

    public void setPiecesNum(Integer piecesNum) {
      this.piecesNum = piecesNum;
    }

    public Integer getPriceNum() {
      if (priceNum == null) {
        priceNum = 0;
      }
      return priceNum;
    }

    public void setPriceNum(Integer priceNum) {
      this.priceNum = priceNum;
    }
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  public String[] getErrorMessages() {
    return errorMessages;
  }

  public void setErrorMessages(String[] errorMessages) {
    this.errorMessages = errorMessages;
  }

  public int getErrorCode() {
    return errorCode;
  }

  public void setErrorCode(int errorCode) {
    this.errorCode = errorCode;
  }

  public ReleaseDonloadEntity getData() {
    return data;
  }

  public void setData(ReleaseDonloadEntity data) {
    this.data = data;
  }
}
